package com.atguigu.gmall.feign.seckill;

import com.atguigu.gmall.model.activity.SeckillGoods;
import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequestMapping("/api/seckill")
@FeignClient("service-activity")
public interface SeckillFeignClient {

    @GetMapping("/current/goods")
    List<SeckillGoods> getCurrentSeckillGoods();

    @GetMapping("/goods/{skuId}")
    SeckillGoods getSeckillGoodsDetail(@PathVariable("skuId") Long skuId);

    @GetMapping("/auth/user/seckillorder")
    OrderInfo getUserSeckillOrderInfo();


}
